from main import app
import time
@app.task
def send_sms(name):
    print(f'向{name}发送短信...')
    time.sleep(4)
    print(f'向{name}发送短信完成...')
    return '短信发送完成'